CC = gcc -Wall

all: clean oda.o socket.o http.o uri.o progress.o
	${CC} -o oda oda.o socket.o http.o uri.o progress.o -lpthread

oda.o: oda.c
	${CC} -c oda.c

socket.o: socket.c socket.h
	${CC} -c socket.c

http.o: http.c http.h
	${CC} -c http.c

uri.o: uri.c uri.h
	${CC} -c uri.c

progress.o: progress.c progress.h
	${CC} -c progress.c

clean:
	rm -f *.o oda
